﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyTruongHoc_App.MyControls
{
    public partial class PopupTextBox : Form
    {
        public delegate void EventUpdate(object sender);
        public event EventUpdate OkClicked;

        public PopupTextBox()
        {
            InitializeComponent();
        }

        public String InputText
        {
            get { return tb_Input.Text; }
            set { tb_Input.Text = value; }
        }

        private void bt_ThemMoi_Click(object sender, EventArgs e)
        {
            try
            {
                OkClicked(this);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Lỗi :" + ex.Message);
            }

            this.Close();
        }
    }
}
